#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s;
	cin >> s;
	char c = s[0];
	s.erase(0,1);
	s+=c;
	cout << s;
}

